/*
 * @Author: zehao.chen
 * @Date: 2022-09-04 16:00:35
 * @LastEditors: zehao.chen
 * @LastEditTime: 2022-09-04 16:10:21
 * @FilePath: /meeting-admin/src/utils/pattern.js
 * @Description: 
 * 
 */
const url = /(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?/

const telphone = /^1[3456789]\d{9}$/

const idCard = /(^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$)|(^[1-9]\d{5}\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}$)/

const patternObj = {
  url,
  telphone,
  idCard
}
export default patternObj

